package com.ionehe.group.common.uaa.ex.application.converter;

import com.ionehe.group.common.uaa.ex.application.model.SetMealVO;
import com.ionehe.group.common.uaa.ex.dto.SetMealDTO;
import org.mapstruct.Mapper;

import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.Date;
import java.util.List;

/**
 * Copyright (c) 2020 ionehe.com
 * Date: 2020/11/25 0025
 * Time: 10:22
 *
 * @author 2020年 <a href="mailto:a@ionehe.com">秀</a>
 */
@Mapper(componentModel = "spring",imports = {LocalDateTime.class, Date.class, ZoneId.class})//交给spring管理
public interface SetMealConverter {
    SetMealDTO vo2dto (SetMealVO setMealVO);

    SetMealVO dto2vo (SetMealDTO setMeal);

    List<SetMealVO> dto2vo (List<SetMealDTO> setMeal);
}